package org.vacoor.nothing.misc.express.usps.api.track.field;

import org.vacoor.nothing.misc.express.usps.api.data.UspsError;

import javax.xml.bind.annotation.*;
import java.util.List;

/**
 * USPS 物流追踪信息
 *
 * @author vacoor
 */
@XmlAccessorType(XmlAccessType.FIELD)
public class TrackFieldInfo {
    // TODO 当 request revision = 1 时结果不一样
    @XmlID
    @XmlAttribute(name = "ID")
    private String id;
    @XmlElement(name = "GuaranteedDeliveryDate")
    private String guaranteedDeliveryDate;
    @XmlElement(name = "TABLECODE")
    private String TableCode;
    @XmlElement(name = "TrackSummary")
    private TrackFieldEvent trackSummary;
    @XmlElement(name = "TrackDetail")
    private List<TrackFieldEvent> trackDetails;
    @XmlElement(name = "Error")
    private UspsError uspsError;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getGuaranteedDeliveryDate() {
        return guaranteedDeliveryDate;
    }

    public void setGuaranteedDeliveryDate(String guaranteedDeliveryDate) {
        this.guaranteedDeliveryDate = guaranteedDeliveryDate;
    }

    public TrackFieldEvent getTrackSummary() {
        return trackSummary;
    }

    public void setTrackSummary(TrackFieldEvent trackSummary) {
        this.trackSummary = trackSummary;
    }

    public List<TrackFieldEvent> getTrackDetails() {
        return trackDetails;
    }

    public void setTrackDetails(List<TrackFieldEvent> trackDetails) {
        this.trackDetails = trackDetails;
    }

    public UspsError getUspsError() {
        return uspsError;
    }

    public void setUspsError(UspsError uspsError) {
        this.uspsError = uspsError;
    }

    public String getTableCode() {
        return TableCode;
    }

    public void setTableCode(String tableCode) {
        TableCode = tableCode;
    }
}
